home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 05.zip
/
BS1 part 5
/
ScalaMM1.adf
/
Utilities
/
Utils.lha
/
FixScript.doc
< prev
next >
Wrap
Text File
|
1992-06-28
|
4KB
|
98 lines
=============
| FixScript |
=============
Description
-----------
FixScript is a small utility that tries to repair Scala
scripts that are broken due to missing or non-existing files
(pictures, animations, sound-files, fonts etc.). Imagine copying a
Scala script from a friend. Although the script worked fine at your
friends home, there is a great possibility that the script contains
references to files that do not exist on your hard-disk or are simply
situated another place, like on another device/partition or in another
directory. Scala will naturally complain about these errors and will
probably not be able to run the script correctly.
Is there a solution?
--------------------
FixScript solves this problem by checking the complete script
for illegal file references. If a file is missing, FixScript tries to
locate the file somewhere else on the available partitions. This
search is normally successful. FixScript corrects all illegal file
references and generates a new working script that Scala should be
able to run without problems. If you need more detailed information,
please see below.
Starting up
-----------
Run FixScript by first Shift-selecting the script you want to
correct from WorkBench. Then, double-click on the FixScript icon.
FixScript can also be run from CLI by entering the script path and
filename as the first argument. If you do not feed FixScript with a
script filename, it will ask for it... FixScript will automatically
check the script for errors, no other user input is necessary. Just
click and go!
Oooops - Wrong Script!
----------------------
FixScript normally does no harm to a script, even if you try
to run it on a working script. However, if you accidentally have run
FixScript on the wrong script, you may hold the keys "Ctrl" + "C" down
for a few seconds if you want to abort the program. Nothing will be
changed in the original script.
How FixScript works - Technical information
-------------------------------------------
If a file is missing, FixScript will first check if the file
exists on another partition/device with the same directory name. All
valid volumes will be examined.
If the file could not be located on another partition/device,
FixScript has no other choice but doing a deep-scan of the harddisk,
looking for that specific file. Since this normally takes quite a lot
of time, FixScript allows you to specify the path to directories (or
volumes) that should be scanned first via "Tool Types" (Please see
below for more informatin about how to enter ToolType info).
It the file still could not be located in any of these
directories (or if no "Tool Type" info was available), FixScript will
automatically scan all volumes. This will take some time so please
have patience (Note: FixScript automatically places all
directory-listings in memory so that multiple seeks take approximately
the same time as single ones).
A note on non-existing files
----------------------------
If a missing file could not be located anywhere on any of the
available volumes, FixScript will remove the related command/action
from the script. Missing fonts will be replaced with another font
that has equal or almost equal size. Non-existing pictures will be
replaced with a blank picture. Later on, you may want to replace
these blanks with real pictures. As you've probably guessed, this is
easily done by using Scala to modify the script.
How to enter ToolType information
---------------------------------
ToolType information can be entered by clicking on the
FixScript icon and selecting "Info" or "Information" from the
WorkBench menu. The ToolType line that starts with "DIR=" should
contain a list of directories that should be checked first. Multiple
directory-names should be seperated with a '|'. FixScript reads the
names from left to right. This means that the directory-name closest
to the left edge of the window has the highest priority and will be
checked first.
If FixScript should first check the directory Work:Scala, then
Work:Pictures and finally Leisure:Animations, this line would
typically read:
DIR=Work:Scala|Work:Pictures|Leisure:Animations